package com.example.drools.spring.learn;

import org.kie.api.KieServices;
import org.kie.api.builder.KieRepository;
import org.kie.api.runtime.KieContainer;

/**
 * @author ddsyw
 * @version 1.0
 * @date 2021/12/30 2:13 下午
 */
public class KieServicesLearn {
  public static void main(String... args) {
    KieServices kieServices = KieServices.Factory.get();
    //kie 容器
    KieContainer kieContainer = kieServices.newKieClasspathContainer();
    KieRepository kieRepository = kieServices.getRepository();
    kieContainer.getKieBase();
    kieContainer.newKieSession("kie-session");
  }
}
